<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <title>vue 事件</title>
    <script src="vue/vue.js"></script>
</head>

<body>
    <div id="app">
        <button @click="say">Vue.js</button>
    </div>

    <script>
        var app = new Vue({
            el: '#app',
            methods: {
                say: function () {
                    alert('hi')
                }
            }
        })
    </script>
</body>

</html>
